class Dog {
    public String name;
    public int age;
    public String color;
    public void wag() {
        System.out.println(name + "摇尾巴");
    }
    public void www() {
        System.out.println(name + "汪汪汪");
    }
    public Dog() {
        ;
    }

    public Dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }
}
public class Test {

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "旺财";
        dog.wag();






    }
}
